<template>
   <div>
     <sonVue></sonVue>
     <button @click="listen">爸爸听电话</button>
   </div>
</template>

<script>
// 引入连接器
import connect from './connector.js'
   export default {
       data () {
       return {

       }
   },
   methods: {
     listen(){
       connect.$on('phone',function(msg){
         console.log(msg)
       })
     }
   }
 }
</script>

<style>
 
</style>
